<template>
    <h2>当前鼠标坐标为X:{{point.pageX}} Y:{{point.pageY}}</h2>

</template>

<script>
    import usePoint from '../hooks/usePoint.js'
    import { ref, reactive, onMounted, onBeforeUnmount } from 'vue'
    //引用对象
    export default {

        setup() {

            let point = usePoint()
            return { point }
        }
    }

</script>

<style>

</style>